Integrand size = 38, antiderivative size = 236 \[ \int \cot ^{\frac {3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2} (A+B \tan (c+d x)) \, dx=\frac {(-1)^{3/4} a^{5/2} (2 A-5 i B) \arctan \left (\frac {(-1)^{3/4} \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right ) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}}{d}+\frac {(4+4 i) a^{5/2} (A-i B) \text {arctanh}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right ) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}}{d}+\frac {a^2 (2 i A-B) \sqrt {a+i a \tan (c+d x)}}{d \sqrt {\cot (c+d x)}}-\frac {2 a A \sqrt {\cot (c+d x)} (a+i a \tan (c+d x))^{3/2}}{d} \]
[Out]
Time = 1.27 (sec) , antiderivative size = 236, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.263, Rules used = {4326, 3674, 3675, 3682, 3625, 211, 3680, 65, 223, 209} \[ \int \cot ^{\frac {3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2} (A+B \tan (c+d x)) \, dx=\frac {(-1)^{3/4} a^{5/2} (2 A-5 i B) \sqrt {\tan (c+d x)} \sqrt {\cot (c+d x)} \arctan \left (\frac {(-1)^{3/4} \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{d}+\frac {(4+4 i) a^{5/2} (A-i B) \sqrt {\tan (c+d x)} \sqrt {\cot (c+d x)} \text {arctanh}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{d}+\frac {a^2 (-B+2 i A) \sqrt {a+i a \tan (c+d x)}}{d \sqrt {\cot (c+d x)}}-\frac {2 a A \sqrt {\cot (c+d x)} (a+i a \tan (c+d x))^{3/2}}{d} \]
[In]
[Out]
Rule 65
Rule 209
Rule 211
Rule 223
Rule 3625
Rule 3674
Rule 3675
Rule 3680
Rule 3682
Rule 4326
Rubi steps \begin{align*} \text {integral}& = \left (\sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int \frac {(a+i a \tan (c+d x))^{5/2} (A+B \tan (c+d x))}{\tan ^{\frac {3}{2}}(c+d x)} \, dx \\ & = -\frac {2 a A \sqrt {\cot (c+d x)} (a+i a \tan (c+d x))^{3/2}}{d}+\left (2 \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int \frac {(a+i a \tan (c+d x))^{3/2} \left (\frac {1}{2} a (4 i A+B)+\frac {1}{2} a (2 A+i B) \tan (c+d x)\right )}{\sqrt {\tan (c+d x)}} \, dx \\ & = \frac {a^2 (2 i A-B) \sqrt {a+i a \tan (c+d x)}}{d \sqrt {\cot (c+d x)}}-\frac {2 a A \sqrt {\cot (c+d x)} (a+i a \tan (c+d x))^{3/2}}{d}+\left (2 \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int \frac {\sqrt {a+i a \tan (c+d x)} \left (\frac {3}{4} a^2 (2 i A+B)-\frac {1}{4} a^2 (2 A-5 i B) \tan (c+d x)\right )}{\sqrt {\tan (c+d x)}} \, dx \\ & = \frac {a^2 (2 i A-B) \sqrt {a+i a \tan (c+d x)}}{d \sqrt {\cot (c+d x)}}-\frac {2 a A \sqrt {\cot (c+d x)} (a+i a \tan (c+d x))^{3/2}}{d}+\left (4 a^2 (i A+B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int \frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {\tan (c+d x)}} \, dx-\frac {1}{2} \left (a (2 i A+5 B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int \frac {(a-i a \tan (c+d x)) \sqrt {a+i a \tan (c+d x)}}{\sqrt {\tan (c+d x)}} \, dx \\ & = \frac {a^2 (2 i A-B) \sqrt {a+i a \tan (c+d x)}}{d \sqrt {\cot (c+d x)}}-\frac {2 a A \sqrt {\cot (c+d x)} (a+i a \tan (c+d x))^{3/2}}{d}-\frac {\left (8 i a^4 (i A+B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \text {Subst}\left (\int \frac {1}{-i a-2 a^2 x^2} \, dx,x,\frac {\sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{d}-\frac {\left (a^3 (2 i A+5 B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {x} \sqrt {a+i a x}} \, dx,x,\tan (c+d x)\right )}{2 d} \\ & = \frac {(4-4 i) a^{5/2} (i A+B) \text {arctanh}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right ) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}}{d}+\frac {a^2 (2 i A-B) \sqrt {a+i a \tan (c+d x)}}{d \sqrt {\cot (c+d x)}}-\frac {2 a A \sqrt {\cot (c+d x)} (a+i a \tan (c+d x))^{3/2}}{d}-\frac {\left (a^3 (2 i A+5 B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {a+i a x^2}} \, dx,x,\sqrt {\tan (c+d x)}\right )}{d} \\ & = \frac {(4-4 i) a^{5/2} (i A+B) \text {arctanh}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right ) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}}{d}+\frac {a^2 (2 i A-B) \sqrt {a+i a \tan (c+d x)}}{d \sqrt {\cot (c+d x)}}-\frac {2 a A \sqrt {\cot (c+d x)} (a+i a \tan (c+d x))^{3/2}}{d}-\frac {\left (a^3 (2 i A+5 B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \text {Subst}\left (\int \frac {1}{1-i a x^2} \, dx,x,\frac {\sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right )}{d} \\ & = \frac {\sqrt [4]{-1} a^{5/2} (2 i A+5 B) \arctan \left (\frac {(-1)^{3/4} \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right ) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}}{d}+\frac {(4-4 i) a^{5/2} (i A+B) \text {arctanh}\left (\frac {(1+i) \sqrt {a} \sqrt {\tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right ) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}}{d}+\frac {a^2 (2 i A-B) \sqrt {a+i a \tan (c+d x)}}{d \sqrt {\cot (c+d x)}}-\frac {2 a A \sqrt {\cot (c+d x)} (a+i a \tan (c+d x))^{3/2}}{d} \\ \end{align*}
Both result and optimal contain complex but leaf count is larger than twice the leaf count of optimal. \(506\) vs. \(2(236)=472\).
Time = 8.25 (sec) , antiderivative size = 506, normalized size of antiderivative = 2.14 \[ \int \cot ^{\frac {3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2} (A+B \tan (c+d x)) \, dx=\sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)} \left (-\frac {2 A (a+i a \tan (c+d x))^{5/2}}{d \sqrt {\tan (c+d x)}}+\frac {2 \left (\frac {2 i a^3 A \sqrt {a+i a \tan (c+d x)} \left (-\frac {3}{4} (-1)^{3/4} \text {arcsinh}\left (\sqrt [4]{-1} \sqrt {\tan (c+d x)}\right )+\frac {5}{4} \sqrt {1+i \tan (c+d x)} \sqrt {\tan (c+d x)}+\frac {1}{2} i \sqrt {1+i \tan (c+d x)} \tan ^{\frac {3}{2}}(c+d x)\right )}{d \sqrt {1+i \tan (c+d x)}}+\frac {a \left (2 a^2 A+\frac {1}{2} i a^2 (5 i A+B)\right ) \left (-\frac {4 i \sqrt {2} a \text {arctanh}\left (\frac {\sqrt {2} \sqrt {i a \tan (c+d x)}}{\sqrt {a+i a \tan (c+d x)}}\right ) \sqrt {\tan (c+d x)}}{\sqrt {i a \tan (c+d x)}}+\frac {4 i a^{3/2} \text {arcsinh}\left (\frac {\sqrt {i a \tan (c+d x)}}{\sqrt {a}}\right ) \sqrt {1+i \tan (c+d x)} \sqrt {\tan (c+d x)}}{\sqrt {i a \tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}+i \sqrt {\tan (c+d x)} \sqrt {a+i a \tan (c+d x)}+\frac {i \sqrt {a} \text {arcsinh}\left (\frac {\sqrt {i a \tan (c+d x)}}{\sqrt {a}}\right ) \sqrt {\tan (c+d x)} \sqrt {a+i a \tan (c+d x)}}{\sqrt {1+i \tan (c+d x)} \sqrt {i a \tan (c+d x)}}\right )}{d}\right )}{a}\right ) \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 572 vs. \(2 (193 ) = 386\).
Time = 0.54 (sec) , antiderivative size = 573, normalized size of antiderivative = 2.43
method | result | size |
derivativedivides | \(\frac {\left (\frac {1}{\tan \left (d x +c \right )}\right )^{\frac {3}{2}} \tan \left (d x +c \right ) \sqrt {a \left (1+i \tan \left (d x +c \right )\right )}\, a^{2} \left (6 i A \ln \left (\frac {2 i a \tan \left (d x +c \right )+2 \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}+a}{2 \sqrt {i a}}\right ) \sqrt {-i a}\, a \tan \left (d x +c \right )-2 i \ln \left (-\frac {-2 \sqrt {2}\, \sqrt {-i a}\, \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}+i a -3 a \tan \left (d x +c \right )}{\tan \left (d x +c \right )+i}\right ) \sqrt {2}\, \sqrt {i a}\, a \tan \left (d x +c \right )+3 B \ln \left (\frac {2 i a \tan \left (d x +c \right )+2 \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}+a}{2 \sqrt {i a}}\right ) \sqrt {-i a}\, a \tan \left (d x +c \right )-2 B \sqrt {i a}\, \sqrt {-i a}\, \tan \left (d x +c \right ) \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}+4 i \ln \left (\frac {2 i a \tan \left (d x +c \right )+2 \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}+a}{2 \sqrt {i a}}\right ) \sqrt {-i a}\, a \tan \left (d x +c \right )-2 \ln \left (-\frac {-2 \sqrt {2}\, \sqrt {-i a}\, \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}+i a -3 a \tan \left (d x +c \right )}{\tan \left (d x +c \right )+i}\right ) \sqrt {2}\, \sqrt {i a}\, a \tan \left (d x +c \right )-4 A \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}\, \sqrt {-i a}-4 \ln \left (\frac {2 i a \tan \left (d x +c \right )+2 \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}+a}{2 \sqrt {i a}}\right ) \sqrt {-i a}\, a \tan \left (d x +c \right )\right )}{2 d \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}\, \sqrt {-i a}}\) | \(573\) |
default | \(\frac {\left (\frac {1}{\tan \left (d x +c \right )}\right )^{\frac {3}{2}} \tan \left (d x +c \right ) \sqrt {a \left (1+i \tan \left (d x +c \right )\right )}\, a^{2} \left (6 i A \ln \left (\frac {2 i a \tan \left (d x +c \right )+2 \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}+a}{2 \sqrt {i a}}\right ) \sqrt {-i a}\, a \tan \left (d x +c \right )-2 i \ln \left (-\frac {-2 \sqrt {2}\, \sqrt {-i a}\, \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}+i a -3 a \tan \left (d x +c \right )}{\tan \left (d x +c \right )+i}\right ) \sqrt {2}\, \sqrt {i a}\, a \tan \left (d x +c \right )+3 B \ln \left (\frac {2 i a \tan \left (d x +c \right )+2 \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}+a}{2 \sqrt {i a}}\right ) \sqrt {-i a}\, a \tan \left (d x +c \right )-2 B \sqrt {i a}\, \sqrt {-i a}\, \tan \left (d x +c \right ) \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}+4 i \ln \left (\frac {2 i a \tan \left (d x +c \right )+2 \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}+a}{2 \sqrt {i a}}\right ) \sqrt {-i a}\, a \tan \left (d x +c \right )-2 \ln \left (-\frac {-2 \sqrt {2}\, \sqrt {-i a}\, \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}+i a -3 a \tan \left (d x +c \right )}{\tan \left (d x +c \right )+i}\right ) \sqrt {2}\, \sqrt {i a}\, a \tan \left (d x +c \right )-4 A \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}\, \sqrt {-i a}-4 \ln \left (\frac {2 i a \tan \left (d x +c \right )+2 \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}+a}{2 \sqrt {i a}}\right ) \sqrt {-i a}\, a \tan \left (d x +c \right )\right )}{2 d \sqrt {a \tan \left (d x +c \right ) \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {i a}\, \sqrt {-i a}}\) | \(573\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 849 vs. \(2 (182) = 364\).
Time = 0.28 (sec) , antiderivative size = 849, normalized size of antiderivative = 3.60 \[ \int \cot ^{\frac {3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2} (A+B \tan (c+d x)) \, dx=\text {Too large to display} \]
[In]
[Out]
Timed out. \[ \int \cot ^{\frac {3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2} (A+B \tan (c+d x)) \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int \cot ^{\frac {3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2} (A+B \tan (c+d x)) \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \cot ^{\frac {3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2} (A+B \tan (c+d x)) \, dx=\int { {\left (B \tan \left (d x + c\right ) + A\right )} {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {5}{2}} \cot \left (d x + c\right )^{\frac {3}{2}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \cot ^{\frac {3}{2}}(c+d x) (a+i a \tan (c+d x))^{5/2} (A+B \tan (c+d x)) \, dx=\int {\mathrm {cot}\left (c+d\,x\right )}^{3/2}\,\left (A+B\,\mathrm {tan}\left (c+d\,x\right )\right )\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{5/2} \,d x \]
[In]
[Out]